package com.itany.cloud.util;

import com.itany.cloud.constant.ResponseCodeConstant;
import lombok.Data;

/**
 * @date 2025/11/6
 */
@Data
public class ResponseResult {

    private String responseCode;
    private String message;
    private Object returnObject;

    public static ResponseResult success(String message) {
        ResponseResult result = new ResponseResult();
        result.setMessage(message);
        result.setResponseCode(ResponseCodeConstant.RESPONSE_CODE_SUCCESS);
        return result;
    }

    public static ResponseResult success(String message, Object returnObject) {
        ResponseResult result = new ResponseResult();
        result.setMessage(message);
        result.setResponseCode(ResponseCodeConstant.RESPONSE_CODE_SUCCESS);
        result.setReturnObject(returnObject);
        return result;
    }
}
